package cn.wolfcode.domain;

import cn.wolfcode.qo.JsonResult;
import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.HashMap;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Classinfo {
    private Long id;

    private String name;

    private Integer number;

    private Employee emp;

    boolean status;


    public String getJson() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("emp",emp);
        return JSON.toJSONString(map);
    }
}